import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 审评中心下的所有部门和相关人员
export function UserWithList(data){
    return axios({
        url: assessCheckApi.UserWithList,
        method:'get' ,
        data:{...data},
        url_1:'outside',
    })
}

// 下载个人签名
export function getMoreUserSignLinkList(params){
    return axios({
        url: assessCheckApi.getMoreUserSignLinkList,
        method:'get' ,
        params:{...params},
        url_1:'outside',
        // responseType: 'arraybuffer',
    })
}

// minio-OA-上传附件
export function fjupload(data){
    return axios({
        url: assessCheckApi.fjupload,
        method:'post' ,
        data:data,
        url_2:'outside',
        // responseType: 'arraybuffer'
    })
}
// OA附件资源库-编辑
export function fjedit(data){
    return axios({
        url: assessCheckApi.fjedit,
        method:'put' ,
        data:{...data},
        url_2:'outside',
    })
}
// 附件删除
export function deleleMinioFile(params){
    return axios({
        url: assessCheckApi.deleleMinioFile,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}
// OA-打开文档-服务端-只读
export function openFile(params){
    return axios({
        url: assessCheckApi.openFile,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}
// minio-下载附件
export function downLoadOa(params){
    return axios({
        url: assessCheckApi.downLoadOa,
        method:'get' ,
        params:{...params},
        url_2:'outside',
        responseType: 'arraybuffer'
    })
}
// OA附件资源库-分页列表查询
export function fjlist(params){
    return axios({
        url: assessCheckApi.fjlist,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 修改时间
export function updatesqsj(params){
    return axios({
        url: assessCheckApi.updatesqsj,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}

//
export function pidgetlchj(params){
    return axios({
        url: assessCheckApi.pidgetlchj,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 下载个人签名
export function downMyQm(params){
    return axios({
        url: assessCheckApi.downMyQm,
        method:'get' ,
        params:{...params},
        url_1:'outside',
        responseType: 'arraybuffer'
    })
}
